#define __DEBUG__
// by Tyrghen
#define THIS_FILE "fnc_init_boxnet.sqf"
#include "x_setup.sqf"

private ["_box", "_unit", "_boxcargo"];
PARAMS_1(_box);

__TRACE_1("","_this")

clearBackpackCargo _box;
clearItemCargo _box;
clearMagazineCargo _box;
clearWeaponCargo _box;

if (!(isNil QGVAR(WithVirtualArsenal)) && { GVAR(WithVirtualArsenal) == 0 }) then {
	_box addAction["<t color='#ff1111'>" + localize "STR_DOM_MISSIONSTRING_2050" + "</t>", {["Open",true] call BIS_fnc_arsenal},[],100,true, false,"","alive _target"];
} else {
	_box addAction["<t color='#ff1111'>" + localize "STR_ACTION_VAS" + "</t>", "tmf\support\modules\tonic_vas\open.sqf",[],100,true, false,"","alive _target"];
};
